package org.example.myleet.p1652;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[0]".equals(JsonUtils.toJson(solution.decrypt(new int[]{10}, 0))));
        Assert.isTrue("[2,1]".equals(JsonUtils.toJson(solution.decrypt(new int[]{1,2}, 1))));
        Assert.isTrue("[4,2]".equals(JsonUtils.toJson(solution.decrypt(new int[]{2,4}, -1))));
        Assert.isTrue("[12,10,16,13]".equals(JsonUtils.toJson(solution.decrypt(new int[]{5,7,1,4}, 3))));
        Assert.isTrue("[0,0,0,0]".equals(JsonUtils.toJson(solution.decrypt(new int[]{1,2,3,4}, 0))));
        Assert.isTrue("[12,5,6,13]".equals(JsonUtils.toJson(solution.decrypt(new int[]{2,4,9,3}, -2))));
    }
}
